<template>
  <div>
    <h1>你的爱好是： {{ hobby }}</h1>
    <MyCheckbox :hobby.sync="hobby" label="兴趣爱好11" :list="list"></MyCheckbox>
  </div>
</template>
<script>
import MyCheckbox from './TestCom.vue';
export default {
  name: 'VueBaseApp',
  components: {
    MyCheckbox,
  },
  data() {
    return {
      hobby: ['抽烟'],
      list: ['抽烟', '喝酒', '敲代码', '玩玩'],
    };
  },
};
</script>
